<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--输出代码标签--%>
<%= new Date()%>
<%--声明标签--%>
<%! int i =10;%>
<%--代码标签--%>
<%
    int i = 10;
    for (int j = 0; j < 10; j++) {
//        out.write(j);
    }
%>
<%=session.getAttribute("myName") %>
<br>
${applicationScope.myName}
${sessionScope.myName}
${requestScope.myName}
<br>
<%=application.getAttribute("mySchool")%>
<br>
${mySchool}
<br>
<%=request.getAttribute("myAge")%>
<br>
${myAge}
<br>
${user.name}
${user.age}


</body>
</html>
